import request from '@/utils/request'

// 查询列表展示
export function listAdminRoles(query) {
  return request({
    url: '/com.mmk.admin.api.AdminRoleProvider/1.0.0/listAdminRoles.html',
    method: 'post',
    data: query
  })
}
//查询权限列表
export function listAdminPermissions(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/listAdminPermissions.html',
      method: 'post',
      data: query
    })
}
//角色新增
export function addAdminRole(query) {
    return request({
      url: '/com.mmk.admin.api.AdminRoleProvider/1.0.0/addAdminRole.html',
      method: 'post',
      data: query
    })
}
//详情
export function getAdminRoleById(query) {
    return request({
      url: '/com.mmk.admin.api.AdminRoleProvider/1.0.0/getAdminRoleById.html',
      method: 'post',
      data: query
    })
}
//删除
export function deleteAdminRole(query) {
    return request({
      url: '/com.mmk.admin.api.AdminRoleProvider/1.0.0/deleteAdminRole.html',
      method: 'post',
      data: query
    })
}
//编辑
export function updateAdminRole(query) {
    return request({
      url:'/com.mmk.admin.api.AdminRoleProvider/1.0.0/updateAdminRole.html',
      method: 'post',
      data: query
    })
}

//师肖肖角色赋权接口
export function listAllPermission(query) {
    return request({
      url:'/com.mmk.admin.api.AdminPermissionProvider/1.0.0/listAllPermission.html',
      method: 'post',
      data: query
    })
}